package com.yzw.hellospringcloudwebadminribbon.controller;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.yzw.hellospringcloudwebadminribbon.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Athor:Yuan
 * @Date:2020/4/6 12:54
 * Desc:
 */
@RestController
public class AdminController {
    @Autowired
    private AdminService adminService;


    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam("message") String message){
        return adminService.sayHi(message);
    }



}
